<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Hello, Text</title>
        <style>
         p {
             background: #dad;
             font-weight: bold;
         }
        </style>
        <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
    </head>
    <body>
        <button>Click me!</button>
        <p>Hello</p>
        <script language="javascript">
         $("button").click(function(event){
             $("p").hide("slow", function(){
                 alert("closed p");
             });
         });
        </script>
    </body>
</html>
